//
//  RecommendSessionView.m
//  ProductB
//
//  Created by 田阳 on 16/8/6.
//  Copyright © 2016年 田阳. All rights reserved.
//

#import "RecommendSessionView.h"

@implementation RecommendSessionView
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.grayView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, kScreenWidth, 10)];
        _grayView.backgroundColor = [UIColor grayColor];
        _grayView.alpha = 0.3;
        [self addSubview:_grayView];
        
        self.imageV = [[UIImageView alloc] initWithFrame:CGRectMake(5, 20, 10, 10)];
        _imageV.image = [UIImage imageNamed:@"001"];
        [self addSubview:_imageV];
    
        self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(_imageV.endX, 10, 100, 30)];
        self.titleLabel.font = [UIFont systemFontOfSize:15];
        [self addSubview:_titleLabel];
        
        self.button = [UIButton buttonWithType:(UIButtonTypeSystem)];
        _button.frame = CGRectMake(kScreenWidth - 60, 10, 35, 30);
        
        [_button setTitle:@"更多" forState:(UIControlStateNormal)];
        [self addSubview:_button];
        
        self.moreImage = [[UIImageView alloc] initWithFrame:CGRectMake(kScreenWidth - 25, 20, 10, 10)];
        _moreImage.image = [UIImage imageNamed:@"右边"];
        [self addSubview:_moreImage];
    }
    return self;
}
@end
